package com.up.api.repository;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: liuchengjun
 * @title: StudentServiceImpl
 * @projectName: 海联技术中台V2.0
 * @depart 软件事业部
 * @description:
 * @date: 2024/1/30/030 14:16 (星期二)
 * @since V2.0
 */
@Service
public class StudentServiceImpl implements StudentService {
    @Resource
    private StudentRepository studentRepository;

    @Override
    public Student findById(String id) {
        studentRepository.save(new Student("3", "测试", 15));
        return studentRepository.findById(id);
    }
}
